﻿using System;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;

namespace Moonlite.Composition
{
    public class RefreshCatalog
    {
        private DirectoryCatalog DirectoryCatalog { get; set; }
        [Export("RefreshExtensions", typeof(Action))]
        public void RefreshExtensions()
        {
            DirectoryCatalog.Refresh();
        }

        public RefreshCatalog(DirectoryCatalog directoryCatalog)
        {
            DirectoryCatalog = directoryCatalog;
        }
    }
}
